package com.mzd.multipledatasources4.dao;

import com.mzd.multipledatasources4.mapper.TransactionMapping2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.mzd.multipledatasources4.bean.TeachersBean;

/**
 * @author Administrator
 */
@Component
public class TransactionDao2 {

    @Autowired
    private TransactionMapping2 tm2;

    public boolean save(TeachersBean t) {
        return tm2.save(t) == 1;
    }

}
